package com.lxy.demo.dao;

import com.lxy.demo.entity.Users;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UsersMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);


    @Select("select * from `users` where `user_code` = #{userCode} and `password` = #{password}")
    Users selectUser(@Param("userCode") String userCode,@Param("password") String password);
}